<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>个人信息</title>
    <meta name="theme-color" content="#ffc91d"/>

    <link th:href="@{/css/person1.css}" rel="stylesheet" type="text/css"/>
    <link th:href="@{/css/person2.css}" rel="stylesheet" type="text/css"/>



    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        .container {
            width: 1200px;
            margin: 2% auto;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
        }




        .smellBorder{
            width: 400px;
            margin: 5% auto;
            padding: 10px;
            border: 5px solid #17a2b8;
            border-radius: 50px;
            background-color: #c69500;
        }





        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }


    </style>
</head>

<body>
<!--侧边栏-->
<div th:replace="~{commons/commons::siderbar}"></div>
<main>
    <h3 th:if="${identity} eq 'student'" >已选课程</h3>
    <h3 th:if="${identity} eq 'teacher'" >所教授课程</h3>
    <div class="container">




                    <div class="smellBorder" th:each="vos,vosStat:${CourseVos}" th:if="${identity} eq 'student'">
                        <div class="skills-title" >
                            <a th:href="@{/stu/all/{num}/1(num=${vos.getCourseNum()})}">
                                <h4 th:text="${vos.getCourseName()}"></h4>
                                <p th:text="${vos.getCourseLocation()}"></p>
                                <p th:text="${vos.getTeacherName()}"></p>
                            </a>

                        </div>
                    </div>
                <div class="smellBorder" th:each="vos,vosStat:${CourseVos}"  th:if="${identity} eq 'teacher'">
                    <div class="skills-title" >
                        <a th:href="@{/teacher/all/{num}/1(num=${vos.getCourseNum()})}">
                            <h4 th:text="${vos.getCourseName()}"></h4>
                            <p th:text="${vos.getCourseLocation()}"></p>
                            <p th:text="${vos.getCourseTime()}"></p>
                        </a>

                    </div>

            </div>
        </div>
    </div>





</main>
</body>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" th:src="@{/js/jquery-3.2.1.slim.min.js}"></script>
<script type="text/javascript" th:src="@{/js/popper.min.js}"></script>
<script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>

<!-- Icons -->
<script type="text/javascript" th:src="@{/js/feather.min.js}"></script>
<script>
    feather.replace();
</script>

<!-- Graphs -->
<script type="text/javascript" th:src="@{/js/Chart.min.js}"></script>
<script>
    var ctx = document.getElementById("myChart");
    var myChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            datasets: [{
                data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
                lineTension: 0,
                backgroundColor: 'transparent',
                borderColor: '#007bff',
                borderWidth: 4,
                pointBackgroundColor: '#007bff'
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: false
                    }
                }]
            },
            legend: {
                display: false,
            }
        }
    });

</script>